package com.Ajava1704.多线程使用案例;

import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.Callable;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/2/25  15:40
 * 描述:
 */
public class TestHandler implements Callable {

    private List<Map<String,Object>> list;

    public TestHandler(List<Map<String, Object>> list) {
        this.list = list;
    }

    @Override
    public List<Map<String,Object>> call() throws Exception {

        for (Map<String, Object> map : list) {
            map.put("goodaName",new String(new Random().nextDouble()+""));
            map.put("brandName",new String(new Random().nextDouble()+""));
            map.put("money",new Random().nextDouble());
            map.put("goodsStyle",new String(new Random().nextInt(100000)+""));
            map.put("address",new String(new Random().nextDouble()+"地址信息"));
            map.put("lianXiRen","联系人");
            map.put("Tel",new String(new Random().nextDouble()+"电话"));
        }

        return list;
    }
}
